Skip to content

fix(wallet-sdk): convert all urls#1773

Open
mateuszpiatkowski-da wants to merge 2 commits into
mainfrom
mateuszpiatkowski-da/wallet-sdk-bug-during-config
Open

fix(wallet-sdk): convert all urls#1773
mateuszpiatkowski-da wants to merge 2 commits into
mainfrom
mateuszpiatkowski-da/wallet-sdk-bug-during-config

Conversation

@mateuszpiatkowski-da
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@mateuszpiatkowski-da mateuszpiatkowski-da self-assigned this May 15, 2026
@mateuszpiatkowski-da mateuszpiatkowski-da requested review from a team as code owners May 15, 2026 09:07
@mateuszpiatkowski-da mateuszpiatkowski-da linked an issue May 15, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@PHOL-DA PHOL-DA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, except one small problem. These changes are not backwards compatible for anything that is exposed through the wallet sdk. This means we effectively can't put these in until a wallet SDK V2.

my suggested approach would be:

extend all the namespaces with string | URL where applicable (or make two variations one that take string and one that take URL and mark the string as @deprecated).

we make a under the hood conversion of string to URL.

@alexmatson-da
Copy link
Copy Markdown
Contributor

alexmatson-da commented May 18, 2026

extend all the namespaces with string | URL where applicable (or make two variations one that take string and one that take URL and mark the string as @deprecated).

My two cents would be to not mark string variant as deprecated. The wallet-sdk is fairly flexible, and I can imagine someone might build a 3rd party app that reads SDK configuration values externally (a JSON file, environment variables, or even some API call).

In that case, it would pretty convenient to support plain string URLs so that the developer doesnt have to remap their external config into the SDK constructor and convert types

(We should still do URL validation, of course)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wallet SDK bug during config

3 participants